package com.uyayo.framework.limiter.exception;

/***
 *
 * Description: 
 *
 * <p>@author: Ives.l
 * <p>@date: 2018/5/25
 * <p>@time: 10:41
 *
 */
public class RequestException extends RuntimeException {

    private static final long serialVersionUID = 342919877314663173L;
    private Object object;

    public RequestException() {
        super();
    }

    public RequestException(String message) {
        super(message);
    }

    public RequestException(String message, Throwable cause) {
        super(message, cause);
    }

    public RequestException(Throwable cause) {
        super(cause);
    }

    protected RequestException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }


    @Override
    public String getMessage() {
        return super.getMessage() + "," + object;
    }


    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
